import { createApp } from 'vue';
import App from './App.vue';
import 'normalize.css';
//pinia
import { createPinia } from 'pinia';
import router from '@/router';

// 注册插件
import plugins from './plugins/index';

// 设置 rem 基准值 同步对应 html 的 font-size
// import { setRemBase } from './utils/rem'
// setRemBase()
// window.addEventListener('resize', setRemBase)
import 'amfe-flexible';

const pinia = createPinia();

const app = createApp(App);
app.use(pinia);
app.use(router);
app.use(plugins);
app.config.globalProperties.$SuperMap3D = window.SuperMap3D;
app.mount('#app');
